package com.java.mapper;

import com.java.entity.PsInspectiontaskDetail;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * @author caiyuan
 * @version 1.0
 * @Date 2020/6/25 4:05 Dream-Seeker
 * @Description
 */
public interface PsInspectiontaskDetailMapper {
    List<PsInspectiontaskDetail> getInspecdetailBylineCodes(String lineCode);

    PsInspectiontaskDetail getInspecdetailBytaskId(Integer taskId);

    Integer addPsInspectiontaskDetail(PsInspectiontaskDetail psInspectiontaskMain);

    PsInspectiontaskDetail getInspecBypoleCode(String poleCode);

    Integer updatePsInspec(PsInspectiontaskDetail psInspectiontaskDetail);

    int selectCount(@Param("lineCode") String lineCode,
                    @Param("bugTypeName")  String bugTypeName,
                    @Param("bugLevelName") String bugLevelName,
                    @Param("findthetimestart")  String findthetimestart,
                    @Param("findthetimeend")  String findthetimeend);

    List<PsInspectiontaskDetail> findByPageInspecDetail(HashMap<String, Object> map);
}
